class MatchAiListEntity{
  List<MatchAiListDataEntity> spProList=[];
  int spProMaxSum = 0;
  int spProWeekSum = 0;
  int spProMaxRedNum = 0;
  int spProYesterdayRed = 0;
  int spProRecentRedNum= 0;
  MatchAiListEntity.fromJson(json){
    if(json['ai_list']!=null){
      spProList=[]; (json['ai_list'] as List).forEach((v) { spProList.add(new MatchAiListDataEntity.fromJson(v)); });
    }
    if(json['max_sum']!=null){
      spProMaxSum = int.parse(json['max_sum'].toString());
    }
    if(json['week_sum']!=null){
      spProWeekSum = int.parse(json['week_sum'].toString());
    }
    if(json['max_red_num']!=null){
      spProMaxRedNum = int.parse(json['max_red_num'].toString());
    }
    if(json['yesterday_red']!=null){
      spProYesterdayRed = int.parse(json['yesterday_red'].toString());
    }
    if(json['last_month_max_red_num']!=null){
      spProRecentRedNum = int.parse(json['last_month_max_red_num'].toString());
    }
  }
}

class MatchAiListAiVipEntity{
  String ?spProIsAiVip;
  String ?spProAiStartTime;
  String ?spProAiEndTime;
  String ?spProAiPrice;
  String ?spProAiWeekPrice;
  String ?spProAiSinglePrice;
  MatchAiListAiVipEntity.fromJson(Map<String ,dynamic> json){
    spProIsAiVip = json['ai_vip'].toString();
    if(json['ai_start_time']!=null){
      spProAiStartTime = json['ai_start_time'].toString();
    }
    if(json['ai_end_time']!=null){
      spProAiEndTime = json['ai_end_time'].toString();
    }
    if(json['ai_price']!=null){
      spProAiPrice = json['ai_price'].toString();
    }
    if(json['ai_single_price']!=null){
      spProAiSinglePrice = json['ai_single_price'].toString();
    }
    if(json['ai_week_price']!=null){
      spProAiWeekPrice = json['ai_week_price'].toString();
    }
  }

}

class MatchAiListDataEntity{
  String ?spProGuessMatchId;
  String ?spProLeagueName;
  String ?spProTeamOne;
  String ?spProTeamTwo;
  String ?spProStTime;
  String ?spProStatus;
  String ?spProScoreOne;
  String ?spProScoreTwo;
  String ?spProIconUrlOne;
  String ?spProIconUrlTwo;
  List spProHitList =[];
  int ?spProTeamOnePercent;
  int ?spProTeamTwoPercent;
  String ?spProCount;
  String ?spProHitNum;
  MatchAiListDataEntity.fromJson(Map<String ,dynamic> json){
    if(json['guess_match_id']!=null){
      spProGuessMatchId = json['guess_match_id'];
    }
    if(json['league_name']!=null){
      spProLeagueName = json['league_name'];
    }
    if(json['team_one']!=null){
      spProTeamOne = json['team_one'];
    }
    if(json['team_two']!=null){
      spProTeamTwo = json['team_two'];
    }
    if(json['st_time']!=null){
      spProStTime = json['st_time'];
    }
    if(json['status']!=null){
      spProStatus = json['status'];
    }
    if(json['score_one']!=null){
      spProScoreOne = json['score_one'];
    }
    if(json['score_two']!=null){
      spProScoreTwo = json['score_two'];
    }
    spProIconUrlOne = json["icon_url_one"]?.toString();
    spProIconUrlTwo = json["icon_url_two"]?.toString();
    if(json['hit_list']!=null){
      spProHitList = json['hit_list'];
    }
    if(json['team_one_percent']!=null){
      spProTeamOnePercent = json['team_one_percent'];
    }
    if(json['team_two_percent']!=null){
      spProTeamTwoPercent = json['team_two_percent'];
    }
    if(json['count']!=null){
      spProCount = json['count'];
    }
    if(json['hit_num']!=null){
      spProHitNum = json['hit_num'];
    }

  }
}
